<?php
$this->pageTitle=Yii::app()->name . ' - Thông tin tài khoản';

$this->widget('MyBreadcrumbs', array(
    'links'=>array('Thông tin tài khoản'),
));
?>

<style>
.board{
width: 48%;
height: auto;
border: 1px solid silver;
display: block;
}

.board .title{
width: 100%;
background: #309B75;
height: 35px;
line-height: 35px;
text-align: center;
color: white;
font-size: 15px;
}

.board .content{
padding: 15px;
}

.form input, .form textarea{
width: 300px;
}
</style>

<div>Cập nhật thông tin tài khoản</div>
<?php $this->widget('bootstrap.widgets.TbAlert', array(
        'block'=>true, // display a larger alert block?
        'fade'=>true, // use transitions?
        'closeText'=>'&times;', // close link text - if set to false, no close link is displayed
        'alerts'=>array( // configurations per alert type
            'success'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), // success, info, warning, error or danger
 			'error'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'),
        ),)
    ); ?>
    
<div class="form">
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'profile-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	//'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>
	<?php echo $form->errorSummary($model); ?>
	
	<!-- left -->
	<div class='board' style="margin-right: 15px; float: left;">
		<div class="title">
		Thông tin cá nhân
		</div>
		<div class="content">
			<div class="row">
				<?php echo $form->textFieldRow($model,'hoten'); ?>
			</div>
			<div class="row">
				<?php echo $form->textAreaRow($model,'diachi',array('size'=>60,'maxlength'=>128, )); ?>
			</div>
			<div class="row">
				<?php echo $form->textFieldRow($model,'dienthoai',array('rows'=>6, 'cols'=>50)); ?>
			</div>
			<div class="row">
				<?php echo $form->labelEx($model,'ngaysinh'); ?>		
				<?php //Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
				   	 $this->widget('zii.widgets.jui.CJuiDatePicker',array(
				        'model'=>$model, //Model object
				        'attribute'=>'ngaysinh', //attribute name
				          //      'mode'=>'date',//use "time","date" or "datetime" (default)
				        'options'=>array(), // jquery plugin options
				    	 'language' => 'vi'
				    ));
				?>
				<?php echo $form->error($model,'ngaysinh'); ?>
			</div>
			
			<?php if(CCaptcha::checkRequirements()): ?>
			<div class="row">
				<?php $this->widget('MyCaptcha'); ?>
				<br/>
				<?php echo $form->textFieldRow($model,'verifyCode'); ?>
			</div>
			<?php endif; ?>
		</div>
	</div>
	
	<!-- right -->
	<div class='board' style="float: right;">
		<div class="title">
		Thông tin cầu thủ
		</div>
	</div>
	

	<div class="row buttons">
		<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=>'Đồng ý', 'type'=>'inverse','htmlOptions'=>array('id'=>'submit'))); ?>
	</div>
<?php $this->endWidget(); ?>
</div>